package com.tank.observer;

import com.tank.entrity.Tank;

public class TankFireHandle implements TankFireObserver {
    @Override
    public void actionOnFire(TankFireEvent event) {
        if (event.getSource() instanceof Tank) {
            ((Tank)event.getSource()).fire();
        }
    }
}
